package com.vision.mapper;

import com.vision.pojo.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper {

    List<Permission> selectPermissionsByRoleId(Integer roleId);

    // 通过角色id查询角色名
    @Select("select name from vs_role where id = #{roleId}")
    String selectRoleNameByRoleId(Integer roleId);
}
